import debounce from '@/directives/debounce'
import focus from '@/directives/focus'
import { App } from 'vue'

export const directives = {
  install (Vue: any) {
    Vue.directive('debounce', debounce)
    Vue.directive('focus', focus)
  }
}

export function setupDirective (app: App) {
  app.use(directives)
}
